home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7960 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  812 b 

  1. Message-ID: <31236966.1881@sisna.com>
  2. Date: Thu, 15 Feb 1996 09:12:06 -0800
  3. From: Matt Smolic <msmolic@sisna.com>
  4. Organization: Smolic Consulting
  5. X-Mailer: Mozilla 2.0b6b (Win16; I)
  6. MIME-Version: 1.0
  7. Newsgroups: comp.lang.c++
  8. Subject: Syntax clarification
  9. Content-Type: text/plain; charset=us-ascii
  10. Content-Transfer-Encoding: 7bit
  11. NNTP-Posting-Host: dialup122.sisna.com
  12. Path: news.sisna.com!
  13.  
  14. I am just making the switch from C to C++. Something I have come across 
  15. and cannot find an answer to is the use of the "&" symbol. In C this 
  16. means the address of, (e.g.) scanf("%d", &Avariable) would return the 
  17. address of Avariable. In C++ I constantly see syntax such as, in 
  18. declaring a class, Complex pow(const Complex & c, const Complex & power)
  19. What does the & symbol do here? 
  20.  
  21. Thanks in advance for the help.
  22.